import axios from "axios"
import {Indicator} from "mint-ui"

axios.interceptors.request.use(function(config){
       Indicator.open({
           text: "加载中...",
         
           spinnerType: "fading-circle"
       });
       return config;
},
function(err){
    return Promise.reject(err)
})


axios.interceptors.response.use(function(config){
        Indicator.close();
        return config;
},
function(err){
    return Promise.reject(err)
})